package routers

import (
	"api_server/internal/controllers"
	"api_server/internal/middleware"

	"github.com/gin-gonic/gin"
)

func RegisteUser(engine *gin.Engine) {
	authApi := engine.Group("auth/user").Use(middleware.VerifyToken())
	userController := controllers.UserController{}
	//提交审核
	authApi.POST("/audit/submit", userController.SubmitAudit)
	authApi.GET("/audit/detail", userController.GetUserAuditDetail)

	//根据ID获取用户信息
	authApi.GET("/info/byid", userController.GetUserInfoById)

	//更新折扣系数
	authApi.POST("/discount/update", userController.UpdateDiscount)

	//获取设计师的折扣系数
	authApi.GET("/discount/get", userController.GetDiscount)

	//获取设计可提现金额
	authApi.GET("/amount/get", userController.GetAmount)

}
